﻿<TabItem x:Class="Scoot.UI.Conversation.DialogTab"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      >
    <TabItem.Header>
        <Grid MouseDown="Grid_MouseDown">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="15" />
            </Grid.ColumnDefinitions>
            <TextBlock Text="Tekst" Name="UIN" Grid.Column="0" Margin="0,0,4,0"/>
            <Button Width="15" Height="15" HorizontalAlignment="Left" VerticalAlignment="Center" Grid.Column="1" Name="CloseButton" Click="CloseButton_Click">
                <Button.Content>
                    <Image Source="/Scoot;component/Images/close.png" Margin="-2,-2,-2,-2"/>
                </Button.Content>
            </Button>
        </Grid>
    </TabItem.Header>
    <TabItem.Content>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="180*" />
                <RowDefinition Height="80*" />
            </Grid.RowDefinitions>
            <TextBox Name="InputBox" Grid.Row="1" Margin="0,28,0,0" KeyUp="InputBox_KeyDown"/>
            <RichTextBox Name="Conversation" VerticalScrollBarVisibility="Auto" />
            <GridSplitter Grid.Row="1" Height="4" Name="gridSplitter1" VerticalAlignment="Top" HorizontalAlignment="Stretch" ResizeDirection="Rows" Margin="0,0,0,0"/>
            <Grid Grid.Row="1" Height="25" Margin="0,4,0,0" Name="grid1" VerticalAlignment="Top">
                <ToolBar Height="25" Name="toolBar1" VerticalAlignment="Top">
                    <Button Content="Send" Name="SendMessage" Click="SendMessage_Click"/>
                </ToolBar>
            </Grid>
        </Grid>
    </TabItem.Content>
</TabItem>
